package com.grad.why.studentsystem.domain;

import java.util.ArrayList;
import java.util.List;

public class CoursestandardExample implements java.io.Serializable{
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CoursestandardExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCourseidIsNull() {
            addCriterion("courseId is null");
            return (Criteria) this;
        }

        public Criteria andCourseidIsNotNull() {
            addCriterion("courseId is not null");
            return (Criteria) this;
        }

        public Criteria andCourseidEqualTo(Integer value) {
            addCriterion("courseId =", value, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidNotEqualTo(Integer value) {
            addCriterion("courseId <>", value, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidGreaterThan(Integer value) {
            addCriterion("courseId >", value, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidGreaterThanOrEqualTo(Integer value) {
            addCriterion("courseId >=", value, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidLessThan(Integer value) {
            addCriterion("courseId <", value, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidLessThanOrEqualTo(Integer value) {
            addCriterion("courseId <=", value, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidIn(List<Integer> values) {
            addCriterion("courseId in", values, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidNotIn(List<Integer> values) {
            addCriterion("courseId not in", values, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidBetween(Integer value1, Integer value2) {
            addCriterion("courseId between", value1, value2, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidNotBetween(Integer value1, Integer value2) {
            addCriterion("courseId not between", value1, value2, "courseid");
            return (Criteria) this;
        }

        public Criteria andQ1IsNull() {
            addCriterion("q1 is null");
            return (Criteria) this;
        }

        public Criteria andQ1IsNotNull() {
            addCriterion("q1 is not null");
            return (Criteria) this;
        }

        public Criteria andQ1EqualTo(Float value) {
            addCriterion("q1 =", value, "q1");
            return (Criteria) this;
        }

        public Criteria andQ1NotEqualTo(Float value) {
            addCriterion("q1 <>", value, "q1");
            return (Criteria) this;
        }

        public Criteria andQ1GreaterThan(Float value) {
            addCriterion("q1 >", value, "q1");
            return (Criteria) this;
        }

        public Criteria andQ1GreaterThanOrEqualTo(Float value) {
            addCriterion("q1 >=", value, "q1");
            return (Criteria) this;
        }

        public Criteria andQ1LessThan(Float value) {
            addCriterion("q1 <", value, "q1");
            return (Criteria) this;
        }

        public Criteria andQ1LessThanOrEqualTo(Float value) {
            addCriterion("q1 <=", value, "q1");
            return (Criteria) this;
        }

        public Criteria andQ1In(List<Float> values) {
            addCriterion("q1 in", values, "q1");
            return (Criteria) this;
        }

        public Criteria andQ1NotIn(List<Float> values) {
            addCriterion("q1 not in", values, "q1");
            return (Criteria) this;
        }

        public Criteria andQ1Between(Float value1, Float value2) {
            addCriterion("q1 between", value1, value2, "q1");
            return (Criteria) this;
        }

        public Criteria andQ1NotBetween(Float value1, Float value2) {
            addCriterion("q1 not between", value1, value2, "q1");
            return (Criteria) this;
        }

        public Criteria andQ2IsNull() {
            addCriterion("q2 is null");
            return (Criteria) this;
        }

        public Criteria andQ2IsNotNull() {
            addCriterion("q2 is not null");
            return (Criteria) this;
        }

        public Criteria andQ2EqualTo(Float value) {
            addCriterion("q2 =", value, "q2");
            return (Criteria) this;
        }

        public Criteria andQ2NotEqualTo(Float value) {
            addCriterion("q2 <>", value, "q2");
            return (Criteria) this;
        }

        public Criteria andQ2GreaterThan(Float value) {
            addCriterion("q2 >", value, "q2");
            return (Criteria) this;
        }

        public Criteria andQ2GreaterThanOrEqualTo(Float value) {
            addCriterion("q2 >=", value, "q2");
            return (Criteria) this;
        }

        public Criteria andQ2LessThan(Float value) {
            addCriterion("q2 <", value, "q2");
            return (Criteria) this;
        }

        public Criteria andQ2LessThanOrEqualTo(Float value) {
            addCriterion("q2 <=", value, "q2");
            return (Criteria) this;
        }

        public Criteria andQ2In(List<Float> values) {
            addCriterion("q2 in", values, "q2");
            return (Criteria) this;
        }

        public Criteria andQ2NotIn(List<Float> values) {
            addCriterion("q2 not in", values, "q2");
            return (Criteria) this;
        }

        public Criteria andQ2Between(Float value1, Float value2) {
            addCriterion("q2 between", value1, value2, "q2");
            return (Criteria) this;
        }

        public Criteria andQ2NotBetween(Float value1, Float value2) {
            addCriterion("q2 not between", value1, value2, "q2");
            return (Criteria) this;
        }

        public Criteria andQ3IsNull() {
            addCriterion("q3 is null");
            return (Criteria) this;
        }

        public Criteria andQ3IsNotNull() {
            addCriterion("q3 is not null");
            return (Criteria) this;
        }

        public Criteria andQ3EqualTo(Float value) {
            addCriterion("q3 =", value, "q3");
            return (Criteria) this;
        }

        public Criteria andQ3NotEqualTo(Float value) {
            addCriterion("q3 <>", value, "q3");
            return (Criteria) this;
        }

        public Criteria andQ3GreaterThan(Float value) {
            addCriterion("q3 >", value, "q3");
            return (Criteria) this;
        }

        public Criteria andQ3GreaterThanOrEqualTo(Float value) {
            addCriterion("q3 >=", value, "q3");
            return (Criteria) this;
        }

        public Criteria andQ3LessThan(Float value) {
            addCriterion("q3 <", value, "q3");
            return (Criteria) this;
        }

        public Criteria andQ3LessThanOrEqualTo(Float value) {
            addCriterion("q3 <=", value, "q3");
            return (Criteria) this;
        }

        public Criteria andQ3In(List<Float> values) {
            addCriterion("q3 in", values, "q3");
            return (Criteria) this;
        }

        public Criteria andQ3NotIn(List<Float> values) {
            addCriterion("q3 not in", values, "q3");
            return (Criteria) this;
        }

        public Criteria andQ3Between(Float value1, Float value2) {
            addCriterion("q3 between", value1, value2, "q3");
            return (Criteria) this;
        }

        public Criteria andQ3NotBetween(Float value1, Float value2) {
            addCriterion("q3 not between", value1, value2, "q3");
            return (Criteria) this;
        }

        public Criteria andQ4IsNull() {
            addCriterion("q4 is null");
            return (Criteria) this;
        }

        public Criteria andQ4IsNotNull() {
            addCriterion("q4 is not null");
            return (Criteria) this;
        }

        public Criteria andQ4EqualTo(Float value) {
            addCriterion("q4 =", value, "q4");
            return (Criteria) this;
        }

        public Criteria andQ4NotEqualTo(Float value) {
            addCriterion("q4 <>", value, "q4");
            return (Criteria) this;
        }

        public Criteria andQ4GreaterThan(Float value) {
            addCriterion("q4 >", value, "q4");
            return (Criteria) this;
        }

        public Criteria andQ4GreaterThanOrEqualTo(Float value) {
            addCriterion("q4 >=", value, "q4");
            return (Criteria) this;
        }

        public Criteria andQ4LessThan(Float value) {
            addCriterion("q4 <", value, "q4");
            return (Criteria) this;
        }

        public Criteria andQ4LessThanOrEqualTo(Float value) {
            addCriterion("q4 <=", value, "q4");
            return (Criteria) this;
        }

        public Criteria andQ4In(List<Float> values) {
            addCriterion("q4 in", values, "q4");
            return (Criteria) this;
        }

        public Criteria andQ4NotIn(List<Float> values) {
            addCriterion("q4 not in", values, "q4");
            return (Criteria) this;
        }

        public Criteria andQ4Between(Float value1, Float value2) {
            addCriterion("q4 between", value1, value2, "q4");
            return (Criteria) this;
        }

        public Criteria andQ4NotBetween(Float value1, Float value2) {
            addCriterion("q4 not between", value1, value2, "q4");
            return (Criteria) this;
        }

        public Criteria andQ5IsNull() {
            addCriterion("q5 is null");
            return (Criteria) this;
        }

        public Criteria andQ5IsNotNull() {
            addCriterion("q5 is not null");
            return (Criteria) this;
        }

        public Criteria andQ5EqualTo(Float value) {
            addCriterion("q5 =", value, "q5");
            return (Criteria) this;
        }

        public Criteria andQ5NotEqualTo(Float value) {
            addCriterion("q5 <>", value, "q5");
            return (Criteria) this;
        }

        public Criteria andQ5GreaterThan(Float value) {
            addCriterion("q5 >", value, "q5");
            return (Criteria) this;
        }

        public Criteria andQ5GreaterThanOrEqualTo(Float value) {
            addCriterion("q5 >=", value, "q5");
            return (Criteria) this;
        }

        public Criteria andQ5LessThan(Float value) {
            addCriterion("q5 <", value, "q5");
            return (Criteria) this;
        }

        public Criteria andQ5LessThanOrEqualTo(Float value) {
            addCriterion("q5 <=", value, "q5");
            return (Criteria) this;
        }

        public Criteria andQ5In(List<Float> values) {
            addCriterion("q5 in", values, "q5");
            return (Criteria) this;
        }

        public Criteria andQ5NotIn(List<Float> values) {
            addCriterion("q5 not in", values, "q5");
            return (Criteria) this;
        }

        public Criteria andQ5Between(Float value1, Float value2) {
            addCriterion("q5 between", value1, value2, "q5");
            return (Criteria) this;
        }

        public Criteria andQ5NotBetween(Float value1, Float value2) {
            addCriterion("q5 not between", value1, value2, "q5");
            return (Criteria) this;
        }

        public Criteria andQ6IsNull() {
            addCriterion("q6 is null");
            return (Criteria) this;
        }

        public Criteria andQ6IsNotNull() {
            addCriterion("q6 is not null");
            return (Criteria) this;
        }

        public Criteria andQ6EqualTo(Float value) {
            addCriterion("q6 =", value, "q6");
            return (Criteria) this;
        }

        public Criteria andQ6NotEqualTo(Float value) {
            addCriterion("q6 <>", value, "q6");
            return (Criteria) this;
        }

        public Criteria andQ6GreaterThan(Float value) {
            addCriterion("q6 >", value, "q6");
            return (Criteria) this;
        }

        public Criteria andQ6GreaterThanOrEqualTo(Float value) {
            addCriterion("q6 >=", value, "q6");
            return (Criteria) this;
        }

        public Criteria andQ6LessThan(Float value) {
            addCriterion("q6 <", value, "q6");
            return (Criteria) this;
        }

        public Criteria andQ6LessThanOrEqualTo(Float value) {
            addCriterion("q6 <=", value, "q6");
            return (Criteria) this;
        }

        public Criteria andQ6In(List<Float> values) {
            addCriterion("q6 in", values, "q6");
            return (Criteria) this;
        }

        public Criteria andQ6NotIn(List<Float> values) {
            addCriterion("q6 not in", values, "q6");
            return (Criteria) this;
        }

        public Criteria andQ6Between(Float value1, Float value2) {
            addCriterion("q6 between", value1, value2, "q6");
            return (Criteria) this;
        }

        public Criteria andQ6NotBetween(Float value1, Float value2) {
            addCriterion("q6 not between", value1, value2, "q6");
            return (Criteria) this;
        }

        public Criteria andQ7IsNull() {
            addCriterion("q7 is null");
            return (Criteria) this;
        }

        public Criteria andQ7IsNotNull() {
            addCriterion("q7 is not null");
            return (Criteria) this;
        }

        public Criteria andQ7EqualTo(Float value) {
            addCriterion("q7 =", value, "q7");
            return (Criteria) this;
        }

        public Criteria andQ7NotEqualTo(Float value) {
            addCriterion("q7 <>", value, "q7");
            return (Criteria) this;
        }

        public Criteria andQ7GreaterThan(Float value) {
            addCriterion("q7 >", value, "q7");
            return (Criteria) this;
        }

        public Criteria andQ7GreaterThanOrEqualTo(Float value) {
            addCriterion("q7 >=", value, "q7");
            return (Criteria) this;
        }

        public Criteria andQ7LessThan(Float value) {
            addCriterion("q7 <", value, "q7");
            return (Criteria) this;
        }

        public Criteria andQ7LessThanOrEqualTo(Float value) {
            addCriterion("q7 <=", value, "q7");
            return (Criteria) this;
        }

        public Criteria andQ7In(List<Float> values) {
            addCriterion("q7 in", values, "q7");
            return (Criteria) this;
        }

        public Criteria andQ7NotIn(List<Float> values) {
            addCriterion("q7 not in", values, "q7");
            return (Criteria) this;
        }

        public Criteria andQ7Between(Float value1, Float value2) {
            addCriterion("q7 between", value1, value2, "q7");
            return (Criteria) this;
        }

        public Criteria andQ7NotBetween(Float value1, Float value2) {
            addCriterion("q7 not between", value1, value2, "q7");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}